package com.ruoyi.wms.domain.bo.partolStore;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.mybatis.core.domain.BaseEntity;
import com.ruoyi.wms.domain.entity.partolStore.InspectionPlan;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 巡检方案业务对象 inspection_plan
 *
 * @author 邓滔滔
 * @date 2024-11-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = InspectionPlan.class, reverseConvertGenerate = false)
public class InspectionPlanBo extends BaseEntity {

    private Long id;

    /**
     * 设备ID
     */
    @NotNull(message = "设备ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long equipmentId;

    /**
     * 设备类型
     */
    @NotBlank(message = "设备类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String equipmentType;

    /**
     * 巡检频率（单位：天）
     */
    private Long frequency;

    /**
     * 巡检间隔时
     */
    private Long intervalDays;

    /**
     * 下次巡检日期
     */
    private Date nextInspectionDate;

    /**
     * 巡检项目
     */
    @NotBlank(message = "巡检项目不能为空", groups = { AddGroup.class, EditGroup.class })
    private String inspectionItems;

    /**
     * 巡检人ID
     */
    private Long inspectorId;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 备注
     */
    private String notes;


}
